<?php

namespace magein\think\command\service;

use magein\think\command\MakeDocs;
use magein\think\command\MakeFaker;
use magein\think\command\MakeModel;
use magein\think\command\MakeModelAttr;
use magein\think\command\MakeService;
use magein\think\command\MakeValidate;
use think\Service;

class CommandService extends Service
{
    /**
     * 注册服务
     *
     * @return void
     */
    public function register()
    {

    }

    /**
     * 执行服务
     *
     * @return void
     */
    public function boot()
    {
        // 添加命令
        $this->commands(
            [
                'model:new' => MakeModel::class,
                'model:attr' => MakeModelAttr::class,
                'model:service' => MakeService::class,
                'model:validate' => MakeValidate::class,
                'model:faker' => MakeFaker::class,
                'model:docs' => MakeDocs::class,
            ]
        );
    }
}